package qldc.pm.qlktcsdldc.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh;

import java.util.List;

/**
 * The persistence utility for the danh muc so ban nganh service. This utility wraps {@link DanhMucSoBanNganhPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see DanhMucSoBanNganhPersistence
 * @see DanhMucSoBanNganhPersistenceImpl
 * @generated
 */
public class DanhMucSoBanNganhUtil {
    private static DanhMucSoBanNganhPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(DanhMucSoBanNganh danhMucSoBanNganh) {
        getPersistence().clearCache(danhMucSoBanNganh);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<DanhMucSoBanNganh> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<DanhMucSoBanNganh> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<DanhMucSoBanNganh> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static DanhMucSoBanNganh update(DanhMucSoBanNganh danhMucSoBanNganh)
        throws SystemException {
        return getPersistence().update(danhMucSoBanNganh);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static DanhMucSoBanNganh update(
        DanhMucSoBanNganh danhMucSoBanNganh, ServiceContext serviceContext)
        throws SystemException {
        return getPersistence().update(danhMucSoBanNganh, serviceContext);
    }

    /**
    * Returns all the danh muc so ban nganhs where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @return the matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Returns a range of all the danh muc so ban nganhs where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @return the range of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh,
            start, end);
    }

    /**
    * Returns an ordered range of all the danh muc so ban nganhs where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh,
            start, end, orderByComparator);
    }

    /**
    * Returns the first danh muc so ban nganh in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh findByIDQLKT_DanhMucSoBanNganh_First(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence()
                   .findByIDQLKT_DanhMucSoBanNganh_First(IDQLKT_DanhMucSoBanNganh,
            orderByComparator);
    }

    /**
    * Returns the first danh muc so ban nganh in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh, or <code>null</code> if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh fetchByIDQLKT_DanhMucSoBanNganh_First(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByIDQLKT_DanhMucSoBanNganh_First(IDQLKT_DanhMucSoBanNganh,
            orderByComparator);
    }

    /**
    * Returns the last danh muc so ban nganh in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh findByIDQLKT_DanhMucSoBanNganh_Last(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence()
                   .findByIDQLKT_DanhMucSoBanNganh_Last(IDQLKT_DanhMucSoBanNganh,
            orderByComparator);
    }

    /**
    * Returns the last danh muc so ban nganh in the ordered set where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh, or <code>null</code> if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh fetchByIDQLKT_DanhMucSoBanNganh_Last(
        long IDQLKT_DanhMucSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByIDQLKT_DanhMucSoBanNganh_Last(IDQLKT_DanhMucSoBanNganh,
            orderByComparator);
    }

    /**
    * Removes all the danh muc so ban nganhs where IDQLKT_DanhMucSoBanNganh = &#63; from the database.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @throws SystemException if a system exception occurred
    */
    public static void removeByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Returns the number of danh muc so ban nganhs where IDQLKT_DanhMucSoBanNganh = &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the i d q l k t_ danh muc so ban nganh
    * @return the number of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static int countByIDQLKT_DanhMucSoBanNganh(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Returns all the danh muc so ban nganhs where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @return the matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByTenSoBanNganh(
        java.lang.String TenSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByTenSoBanNganh(TenSoBanNganh);
    }

    /**
    * Returns a range of all the danh muc so ban nganhs where TenSoBanNganh LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @return the range of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByTenSoBanNganh(
        java.lang.String TenSoBanNganh, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByTenSoBanNganh(TenSoBanNganh, start, end);
    }

    /**
    * Returns an ordered range of all the danh muc so ban nganhs where TenSoBanNganh LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findByTenSoBanNganh(
        java.lang.String TenSoBanNganh, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByTenSoBanNganh(TenSoBanNganh, start, end,
            orderByComparator);
    }

    /**
    * Returns the first danh muc so ban nganh in the ordered set where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh findByTenSoBanNganh_First(
        java.lang.String TenSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence()
                   .findByTenSoBanNganh_First(TenSoBanNganh, orderByComparator);
    }

    /**
    * Returns the first danh muc so ban nganh in the ordered set where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching danh muc so ban nganh, or <code>null</code> if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh fetchByTenSoBanNganh_First(
        java.lang.String TenSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByTenSoBanNganh_First(TenSoBanNganh, orderByComparator);
    }

    /**
    * Returns the last danh muc so ban nganh in the ordered set where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh findByTenSoBanNganh_Last(
        java.lang.String TenSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence()
                   .findByTenSoBanNganh_Last(TenSoBanNganh, orderByComparator);
    }

    /**
    * Returns the last danh muc so ban nganh in the ordered set where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching danh muc so ban nganh, or <code>null</code> if a matching danh muc so ban nganh could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh fetchByTenSoBanNganh_Last(
        java.lang.String TenSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByTenSoBanNganh_Last(TenSoBanNganh, orderByComparator);
    }

    /**
    * Returns the danh muc so ban nganhs before and after the current danh muc so ban nganh in the ordered set where TenSoBanNganh LIKE &#63;.
    *
    * @param IDQLKT_DanhMucSoBanNganh the primary key of the current danh muc so ban nganh
    * @param TenSoBanNganh the ten so ban nganh
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a danh muc so ban nganh with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh[] findByTenSoBanNganh_PrevAndNext(
        long IDQLKT_DanhMucSoBanNganh, java.lang.String TenSoBanNganh,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence()
                   .findByTenSoBanNganh_PrevAndNext(IDQLKT_DanhMucSoBanNganh,
            TenSoBanNganh, orderByComparator);
    }

    /**
    * Removes all the danh muc so ban nganhs where TenSoBanNganh LIKE &#63; from the database.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @throws SystemException if a system exception occurred
    */
    public static void removeByTenSoBanNganh(java.lang.String TenSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeByTenSoBanNganh(TenSoBanNganh);
    }

    /**
    * Returns the number of danh muc so ban nganhs where TenSoBanNganh LIKE &#63;.
    *
    * @param TenSoBanNganh the ten so ban nganh
    * @return the number of matching danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static int countByTenSoBanNganh(java.lang.String TenSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countByTenSoBanNganh(TenSoBanNganh);
    }

    /**
    * Caches the danh muc so ban nganh in the entity cache if it is enabled.
    *
    * @param danhMucSoBanNganh the danh muc so ban nganh
    */
    public static void cacheResult(
        qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh danhMucSoBanNganh) {
        getPersistence().cacheResult(danhMucSoBanNganh);
    }

    /**
    * Caches the danh muc so ban nganhs in the entity cache if it is enabled.
    *
    * @param danhMucSoBanNganhs the danh muc so ban nganhs
    */
    public static void cacheResult(
        java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> danhMucSoBanNganhs) {
        getPersistence().cacheResult(danhMucSoBanNganhs);
    }

    /**
    * Creates a new danh muc so ban nganh with the primary key. Does not add the danh muc so ban nganh to the database.
    *
    * @param IDQLKT_DanhMucSoBanNganh the primary key for the new danh muc so ban nganh
    * @return the new danh muc so ban nganh
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh create(
        long IDQLKT_DanhMucSoBanNganh) {
        return getPersistence().create(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Removes the danh muc so ban nganh with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param IDQLKT_DanhMucSoBanNganh the primary key of the danh muc so ban nganh
    * @return the danh muc so ban nganh that was removed
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a danh muc so ban nganh with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh remove(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence().remove(IDQLKT_DanhMucSoBanNganh);
    }

    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh updateImpl(
        qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh danhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(danhMucSoBanNganh);
    }

    /**
    * Returns the danh muc so ban nganh with the primary key or throws a {@link qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException} if it could not be found.
    *
    * @param IDQLKT_DanhMucSoBanNganh the primary key of the danh muc so ban nganh
    * @return the danh muc so ban nganh
    * @throws qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException if a danh muc so ban nganh with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh findByPrimaryKey(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.qlktcsdldc.NoSuchDanhMucSoBanNganhException {
        return getPersistence().findByPrimaryKey(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Returns the danh muc so ban nganh with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param IDQLKT_DanhMucSoBanNganh the primary key of the danh muc so ban nganh
    * @return the danh muc so ban nganh, or <code>null</code> if a danh muc so ban nganh with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh fetchByPrimaryKey(
        long IDQLKT_DanhMucSoBanNganh)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(IDQLKT_DanhMucSoBanNganh);
    }

    /**
    * Returns all the danh muc so ban nganhs.
    *
    * @return the danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the danh muc so ban nganhs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @return the range of danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the danh muc so ban nganhs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.qlktcsdldc.model.impl.DanhMucSoBanNganhModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of danh muc so ban nganhs
    * @param end the upper bound of the range of danh muc so ban nganhs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the danh muc so ban nganhs from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of danh muc so ban nganhs.
    *
    * @return the number of danh muc so ban nganhs
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static DanhMucSoBanNganhPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (DanhMucSoBanNganhPersistence) PortletBeanLocatorUtil.locate(qldc.pm.qlktcsdldc.service.ClpSerializer.getServletContextName(),
                    DanhMucSoBanNganhPersistence.class.getName());

            ReferenceRegistry.registerReference(DanhMucSoBanNganhUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(DanhMucSoBanNganhPersistence persistence) {
    }
}
